﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NJL.Web.Controls
{
    public partial class WUCIndexLocalColor : BaseUserControl
    {
        private readonly BLL.NJL_LOCAL_COLOR bllLocalColor = new BLL.NJL_LOCAL_COLOR();
        protected IList<Model.NJL_LOCAL_COLOR> listLocalColor;
        BLL.NJL_SYS_NEWS bllSysNews = new BLL.NJL_SYS_NEWS();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
           
            }

            LoadData();
            if (!IsPostBack)
            {
                rptNews.DataSource = bllSysNews.GetList(3, "NJL_SYS_BASE_ID='" + WEBSITE_CODE + "' and TYPE_CODE='17' and IS_INDEX=1 and IS_PUBLISH=1", "SORT DESC,PUBLISH_DATE_TIME desc");
                rptNews.DataBind();
            }

        }

        private void LoadData()
        {
            listLocalColor = bllLocalColor.IndexGetModelList(this.WEBSITE_CODE, this.WEBSITE_FOCUS_CITY_CODE);

        }
    }
}